package com.project.service.impl;

import com.project.bean.CommentBean;
import com.project.bean.ProductBean;
import com.project.mapper.ICommentMapper;
import com.project.service.ICommentService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CommentServiceImpl implements ICommentService {
    @Autowired
    private ICommentMapper mapper;
    @Override
    public void add(CommentBean comment) {
        mapper.insert(comment);
    }
}
